package com.xk.school_device.service.impl;

import com.xk.school_device.entity.Roles;
import com.xk.school_device.mapper.RolesMapper;
import com.xk.school_device.service.IRolesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xk
 * @since 2025-04-16
 */
@Service
public class RolesServiceImpl extends ServiceImpl<RolesMapper, Roles> implements IRolesService {
    @Autowired
    private RolesMapper roleMapper;

    @Override
    public List<Roles> getRolesByRoleId(String roleId) {
        return roleMapper.selectRolesByRoleId(roleId);
    }
}
